package com.itheima.domain;

import java.io.Serializable;

public final class Code implements Serializable {
    private Code(){}

    //定义操作结果的常量
    public static final int QUERY_OK=2001;
    public static final int QUERY_FAIL=2002;

    public static final int SAVE_OK=2003;
    public static final int SAVE_FAIL=2004;

    public static final int UPDATE_OK=2005;
    public static final int UPDATE_FAIL=2006;

    public static final int DELETE_OK=2007;
    public static final int DELETE_FAIL=2008;

    public static final int LOGIN_OK=2009;
    public static final int LOGIN_FAIL=2010;

    public static final int BUSINESS_EXCEPTION=5001;
    public static final int OTHER_EXCEPTION=5002;
}
